package kr.pe.xissy.soulmate.domain;

public class SoulMateDomain implements Comparable<SoulMateDomain> {

	protected int id;
	protected boolean isPrivate = true;

	public SoulMateDomain() {
	}

	public SoulMateDomain(int id, boolean isPrivate) {
		this.id = id;
		this.isPrivate = isPrivate;
	}

	public SoulMateDomain(boolean isPrivate) {
		this(0, isPrivate);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public boolean isPrivate() {
		return isPrivate;
	}

	public void setPrivate(boolean isPrivate) {
		this.isPrivate = isPrivate;
	}

	public int compareTo(SoulMateDomain o) {
		if (this.id < o.id) {
			return -1;
		} else if (this.id > o.id) {
			return 1;
		} else {
			return 0;
		}
	}

}
